import sys

sys.path.append('.')
from config.config import Config
import logging
import os


# ====================
# dev environment config
# ===============================


class LocalConfig(Config):
    DEBUG = True
    RELOAD = True
    HOST = '0.0.0.0'
    RPC_PORT = 5001
    HTTP_PORT = 5002
    HTTP_CONFIG = {
        # "redoc_url": None,
        # "docs_url": None,
        "title": 'Account',
        "description": 'This project is a auto sell account.',
        "version": "1.0"
    }
    MYSQL_HOST = os.environ.get("MYSQL_SELL_HOST")
    MYSQL_PORT = os.environ.get("MYSQL_SELL_PORT")
    MYSQL_USER = os.environ.get("MYSQL_SELL_USER")
    MYSQL_PASSWORD = os.environ.get("MYSQL_SELL_PASSWORD")
    MYSQL_DB_NAME = "auto_sell_account"

    SECRET_KEY = os.environ.get("JWT_SECRET_KEY")
    ALGORITHM = "HS256"
    ACCESS_TOKEN_EXPIRE_MINUTES = 60*24*15
    ADD_EXCEPTION_HANDLERS = True

